package callnumber.gtdev5.com.photoVault.activity;

import android.graphics.Bitmap;
import android.os.Bundle;

import org.litepal.crud.DataSupport;

import java.util.ArrayList;
import java.util.List;

import butterknife.ButterKnife;
import callnumber.gtdev5.com.photoVault.R;
import callnumber.gtdev5.com.photoVault.base.BaseActivity;
import callnumber.gtdev5.com.photoVault.bean.PhotoBean;
import callnumber.gtdev5.com.photoVault.utils.Des3Util;
import callnumber.gtdev5.com.photoVault.utils.ImageBase64;

public class SeePhotoActivity extends BaseActivity {
    private List<PhotoBean> datas;
    @Override
    protected int getLayouId() {
        return R.layout.activity_see_photo;
    }

    @Override
    protected void initViews(Bundle savedInstanceState) {
        datas = new ArrayList<>();
        datas = DataSupport.findAll(PhotoBean.class);
        if (datas != null && !datas.isEmpty()) {
            List<Bitmap> strings = new ArrayList<>();
            for (PhotoBean photoBean : datas) {
//                strings.add( Des3Util.decrypt(key, photoBean.getUri()));
//                strings.add(ImageBase64.stringtoBitmap(Des3Util.decrypt(key, photoBean.getUri())));
            }
        }
    }

    @Override
    protected void initDatas() {

    }

    @Override
    protected void initAction() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);

    }
}
